<div class="syntax"><pre><span class="c"># This is it...  </span>
<span class="k">while</span> <span class="n">i</span> <span class="o">&lt;</span> <span class="mf">100</span><span class="p">:</span>
    <span class="n">i</span> <span class="o">+</span> <span class="mf">1</span>

<span class="c"># More generally:</span>
<span class="k">while</span> <span class="n">thing</span> <span class="ow">is</span> <span class="bp">True</span><span class="p">:</span>
    <span class="sd">&quot;&quot;&quot;do the following</span>

<span class="sd">    &quot;&quot;&quot;</span>
    <span class="n">thing</span> <span class="o">=</span> <span class="bp">False</span> <span class="ow">or</span> <span class="bp">None</span>

<span class="c"># Infinite Loop:</span>
<span class="k">while</span> <span class="mf">1</span><span class="p">:</span>
    <span class="k">print</span> <span class="s">&quot;I&#39;m loopy!&quot;</span>
</pre></div>
